package c.e.a.b.f.b;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public abstract class r5 extends s5 {
    public boolean b;

    public r5(u4 u4Var) {
        super(u4Var);
        u4Var = this.a;
        u4Var.E++;
    }

    public void m() {
    }

    public final boolean n() {
        return this.b;
    }

    public final void o() {
        if (!n()) {
            throw new IllegalStateException("Not initialized");
        }
    }

    public final void p() {
        if (this.b) {
            throw new IllegalStateException("Can't initialize twice");
        } else if (!r()) {
            this.a.F.incrementAndGet();
            this.b = true;
        }
    }

    public final void q() {
        if (this.b) {
            throw new IllegalStateException("Can't initialize twice");
        }
        m();
        this.a.F.incrementAndGet();
        this.b = true;
    }

    public abstract boolean r();
}
